﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleServiceBus.Utilities
{
    public static class ExceptionHelper
    {
        public static string FullMessage(this Exception exception)
        {
            //StringBuilder message = new StringBuilder(exception.Message);
            //while (exception.InnerException != null)
            //{
            //    exception = exception.InnerException;

            //    message.Append(Environment.NewLine);
            //    message.Append("-----------Inner Exception----------");
            //    message.Append(Environment.NewLine);
            //    message.Append(exception.Message);
            //}
            //return message.ToString();
            return exception.ToString();
        }
    }
}
